package com.bah.tract.action;

import org.jboss.seam.annotations.Name;
import org.jboss.seam.framework.EntityQuery;

import com.bah.tract.model.Person;

@Name("managerList")
public class ManagerList extends EntityQuery<Person> {

	/**
	 * 
	 */
	private static final long serialVersionUID = -3437934479410883995L;

	private static final String EJBQL = "select person from Person person join person.roles role where role.name='manager' ";

	private Person person = new Person();

	public ManagerList() {
		setEjbql(EJBQL);
	}

	public Person getPerson() {
		return person;
	}
}
